﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

namespace Camc.Quality.Migrations
{
    public partial class _20210916_updatestore : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            //migrationBuilder.AddColumn<bool>(
            //    name: "IsCancelling",
            //    table: "DeliveryOutRecords",
            //    nullable: false,
            //    defaultValue: false);

            //migrationBuilder.AddColumn<Guid>(
            //    name: "DeliveryDocumentId",
            //    table: "CancellingStocksDocuments",
            //    nullable: false,
            //    defaultValue: new Guid("00000000-0000-0000-0000-000000000000"));

            migrationBuilder.CreateTable(
                name: "StorePutRecords",
                columns: table => new
                {
                    Id = table.Column<Guid>(nullable: false),
                    CreationTime = table.Column<DateTime>(nullable: false),
                    CreatorUserId = table.Column<long>(nullable: true),
                    LastModificationTime = table.Column<DateTime>(nullable: true),
                    LastModifierUserId = table.Column<long>(nullable: true),
                    IsDeleted = table.Column<bool>(nullable: false),
                    DeleterUserId = table.Column<long>(nullable: true),
                    DeletionTime = table.Column<DateTime>(nullable: true),
                    ReleaseOrder = table.Column<string>(nullable: true),
                    QualifiedNumber = table.Column<string>(nullable: true),
                    SpecialRecords = table.Column<string>(nullable: true),
                    MaterialsProperty = table.Column<int>(nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_StorePutRecords", x => x.Id);
                });
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "StorePutRecords");

            //migrationBuilder.DropColumn(
            //    name: "IsCancelling",
            //    table: "DeliveryOutRecords");

            //migrationBuilder.DropColumn(
            //    name: "DeliveryDocumentId",
            //    table: "CancellingStocksDocuments");
        }
    }
}
